﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class FenXi : MonoBehaviour
{
    public Button btn;

    public Text text;

    public Text Name;

    void Start()
    {
        btn.onClick.AddListener(delegate
        {
            if (Name.text != "请选择角色")
            {
                GameObject.Find("GameManager").GetComponent<DesktableManager>().BlackShowText("请切换竖屏进行操作");
            }
        });
    }
}
